<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

		<title>部门管理</title>
		<link rel="stylesheet" type="text/css" href="easyui/css/easyui.css">
		<link rel="stylesheet" type="text/css" href="easyui/css/icon.css">
		<link rel="stylesheet" type="text/css" href="easyui/css/demo.css">
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="easyui/js/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="easyui/js/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="administrator/js/department.js"></script>
</head>

<body>

<table id="tg" title="部门管理">
	<thead>
		<tr>
			<th data-options="field:'deptName',width:20">
				部门名称
			</th>
			<th data-options="field:'deptNo',width:10">
				部门编号
			</th>
			<th data-options="field:'pid',width:10,align:'center'">
				父ID
			</th>
			<th data-options="field:'companyName',width:10">
				所属公司
			</th>
			<th data-options="field:'companyID',width:10">
				所属公司ID
			</th>
			<th data-options="field:'memo',width:20">
				描述
			</th>
		</tr>
	</thead>
</table>

<div id="tg_toolbar" align="right" style="width: 100%">
	<a href="javascript:void(0)" class="easyui-linkbutton lb"
		onclick="collapseAll()">关闭全部</a>
	<a href="javascript:void(0)" class="easyui-linkbutton lb"
		onclick="expandAll()">展开全部</a>
	<a href="javascript:void(0)" class="easyui-linkbutton "
		iconCls="icon-add" plain="true" onclick="onAdd()">增加</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		iconCls="icon-edit" plain="true" onclick="onUpdate()">编辑</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		iconCls="icon-remove" plain="true" onclick="onDelete()">删除</a>
</div>

<div id="op_menu" class="easyui-menu" style="width: 120px;">
	<div onclick="onAdd()">
		添加
	</div>
	<div onclick="onUpdate()">
		修改
	</div>
	<div onclick="onDelete()">
		删除
	</div>
</div>

<!--添加/编辑弹出框  -->
<div id="tg_dd" title="部门信息" class="easyui-dialog"
	data-options="iconCls:'large_smartart',modal:true,closed:true" style="top:50px;padding:10px;width: 450px;">
	<form id="myform" name="edit_department" action="" method="post">
		<input type="hidden" name="id" value="" />
		<input type="hidden" name="pid" value="" />
		<table>
			<tr>
				<td>
					部门名称:
				</td>
				<td>
					<input type="text" name="deptName" class="easyui-textbox"
						data-options="required:true">
				</td>
			</tr>
			<tr>
				<td>
					部门编号:
				</td>
				<td>
					<input type="text" name="deptNo" class="easyui-textbox"
						data-options="required:true">
				</td>
			</tr>
			<tr>
				<td>
					所属公司:
				</td>
				<td>
					<input id="cc" type="text" name="companyID"
						class="easyui-combobox" data-options="required:true">
				</td>
			</tr>
			<tr>
				<td>
					描述:
				</td>
				<td>
					<textarea name="memo" cols="15" rows="5"></textarea>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<a id="btnsummit" class="easyui-linkbutton">确定</a>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<a id="btncancer" class="easyui-linkbutton">取消</a>
				</td>
			</tr>

		</table>

	</form>
</div>


</body>
</html>